package com.wx.springboot.step9back.service;

import com.wx.springboot.step9back.model.Permission;
import com.wx.springboot.step9back.model.User;
import com.wx.springboot.step9back.vo.LoginParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService {
    String register(User user);

    String login(LoginParam loginParam, HttpServletRequest request);

    int perfect(User user);

    User findUserByUserCode(String userCode);

    User getUserByUserCode(String username);

    List<Permission> getPermissionsByUserId(String userCode);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    List<User> getUserByTeamCode(String teamCode);

    List<User> getUserItemByNoTeamCode();

    String updateUserTeam(String teamCode, List<Integer> ids);

    int getCountByTeam(String teamCode);

    String updateUserRole(String teamCode, String userCode);

    String updateLeaderToStu(Integer id);

    int updateUser(Map<String, Object> data);

    int delUser(User user);

    List<User> getStudentList(Map<String, Object> data);

    int getStudentCount(Map<String, Object> data);

    int updateStudent(User user);

    List<User> getTeacherList();

    List<User> getCoachList();

    List<User> getUserCodes(List<Integer> ids);

    int addTransferTeams(Map maps);
}
